from django.shortcuts import render
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import viewsets
from rest_framework.filters import SearchFilter, OrderingFilter
from .serializers import *
from .filters import *
from .models import Store
from apps.pagination import *


# Create your views here.
class StoreListViewSet(viewsets.ModelViewSet):
    """
        GoodLabelListViewSet

    """
    queryset = Store.objects.all()  # queryset
    serializer_class = StoreSerializer
    pagination_class = StandardResultsSetPagination
    filter_backends = (DjangoFilterBackend, SearchFilter, OrderingFilter)
    filter_class = StoreFilter
    search_fields = []